package cn.itsource.Dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class StockDto {

    // 产品id
    @NotNull(message = "产品id不能为空")
    private Long productId;

    // 数量
    @NotNull(message = "数量不能为空")
    private Integer count;

    // 出入库状态 0:入库 1:出库
    @NotNull(message = "出入库状态不能为空")
    private Integer status;
}
